$.ajaxSetup({
  dataType: "json",
  dataFilter: function(data, type) {
    var obj = JSON.parse(data);
    if (obj != null && obj.status == 2002) { // 登录信息失效
      location.href = '/';
      return false;
    }
    return data;
  }
});
